package com.reder.practice.common.enums.state;

import com.reder.practice.common.enums.Statable;
import lombok.Getter;

/**
 * 用户业务响应枚举类
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/09/23 15:19:58</p>
 */
@Getter
public enum UserState implements Statable {

    REGISTER_FAILED(-1, "注册失败"),
    NICKNAME_OR_PASSWORD_IS_INCORRECT(-2, "用户昵称或密码不正确"),
    NICKNAME_EXISTED(-3, "用户昵称已经存在");

    int code = Statable.SUCCESS_CODE;
    String msg = null;

    UserState(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
